import { createApp } from "vue";
import App from "./App.vue";

const myApp = createApp(App);

// myApp.directive('指令名', '指令的一些配置项')
myApp.directive("color", (el, binding) => {
    // 这会在 `mounted` 和 `updated` 时都调用
    el.style.color = binding.value;
});

myApp.mount("#app");
